<template>
    <div class="order_header">
        <OrderTab />
        <div @click="orderStore.openOrderfilter()">
            <img v-if="!orderState.filterdialog" src="@/assets/order/filter.png" style="width: 20px;height: 20px;cursor: pointer;"  alt="">
            <img v-if="orderState.filterdialog" src="@/assets/order/filter-active.png" style="width: 20px;height: 20px;cursor: pointer;"  alt="">
        </div>
    </div>
</template>

<script setup>
import OrderTab from "./OrderTab.vue";
const { orderStore, orderState } = inject('OrderStore')
</script>

<style lang="scss" scoped>
.order_header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    height: 48px;
    
}

</style>